package com.ccp.dev.workflow.model;

import com.ccp.dev.core.basic.model.BaseModel;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/**
 * ClassDescribe
 * 对象功能:代理的流程列表 Model对象
 * @author: fanruiqi
 * Date: 2019-09-20
 * Since:1
 * To change this template use File | Settings | File Templates.
 */
public class AgentDefModel extends BaseModel<AgentDefModel> {
    /**
     * 主键
      */
    protected String  id;
    /**
     * 代理设定ID
      */
    protected String  settingId;
    /**
     * 流程KEY
      */
    protected String  flowKey;
    /**
     * 流程名称
      */
    protected String  flowName;
    public void setId(String id)
    {
        this.id = id;
    }
    /**
     * 返回 主键
     */
    public String getId()
    {
        return this.id;
    }
    public void setSettingId(String settingId)
    {
        this.settingId = settingId;
    }
    /**
     * 返回 代理设定ID
     */
    public String getSettingId()
    {
        return this.settingId;
    }
    public void setFlowKey(String flowKey)
    {
        this.flowKey = flowKey;
    }
    /**
     * 返回 流程KEY
     */
    public String getFlowKey()
    {
        return this.flowKey;
    }
    public void setFlowName(String flowName)
    {
        this.flowName = flowName;
    }
    /**
     * 返回 流程名称
     */
    public String getFlowName()
    {
        return this.flowName;
    }


    /**
     * @see Object#equals(Object)
     */
    @Override
    public boolean equals(Object object)
    {
        if (!(object instanceof AgentDefModel))
        {
            return false;
        }
        AgentDefModel rhs = (AgentDefModel) object;
        return new EqualsBuilder()
                .append(this.id, rhs.id)
                .append(this.settingId, rhs.settingId)
                .append(this.flowKey, rhs.flowKey)
                .append(this.flowName, rhs.flowName)
                .isEquals();
    }

    /**
     * @see Object#hashCode()
     */
    @Override
    public int hashCode()
    {
        return new HashCodeBuilder(-82280557, -700257973)
                .append(this.id)
                .append(this.settingId)
                .append(this.flowKey)
                .append(this.flowName)
                .toHashCode();
    }

    /**
     * @see Object#toString()
     */
    @Override
    public String toString()
    {
        return new ToStringBuilder(this)
                .append("id", this.id)
                .append("settingId", this.settingId)
                .append("flowKey", this.flowKey)
                .append("flowName", this.flowName)
                .toString();
    }

}
